﻿namespace WMS6.Web.InventoryMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="TransferDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough]
    public class TransferDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FromLocField;
        [OptionalField]
        private string FromLotField;
        [OptionalField]
        private string FromLpnIDField;
        [OptionalField]
        private string FromOwnerIDField;
        [OptionalField]
        private string FromPackIDField;
        [OptionalField]
        private decimal FromQtyField;
        [OptionalField]
        private string FromSkuDescrField;
        [OptionalField]
        private string FromSkuIDField;
        [OptionalField]
        private string FromUomIDField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string ToLocField;
        [OptionalField]
        private string ToLotField;
        [OptionalField]
        private string ToLpnIDField;
        [OptionalField]
        private string ToOwnerIDField;
        [OptionalField]
        private string ToPackIDField;
        [OptionalField]
        private decimal ToQtyField;
        [OptionalField]
        private string ToSkuDescrField;
        [OptionalField]
        private string ToSkuIDField;
        [OptionalField]
        private string ToUomIDField;
        [OptionalField]
        private DateTime TransferDateField;
        [OptionalField]
        private string TransferIDField;
        [OptionalField]
        private ReceiptLotInfo TransferLotInfoField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string FromLoc
        {
            get
            {
                return this.FromLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLocField, value))
                {
                    this.FromLocField = value;
                    this.RaisePropertyChanged("FromLoc");
                }
            }
        }

        [DataMember]
        public string FromLot
        {
            get
            {
                return this.FromLotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLotField, value))
                {
                    this.FromLotField = value;
                    this.RaisePropertyChanged("FromLot");
                }
            }
        }

        [DataMember]
        public string FromLpnID
        {
            get
            {
                return this.FromLpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLpnIDField, value))
                {
                    this.FromLpnIDField = value;
                    this.RaisePropertyChanged("FromLpnID");
                }
            }
        }

        [DataMember]
        public string FromOwnerID
        {
            get
            {
                return this.FromOwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromOwnerIDField, value))
                {
                    this.FromOwnerIDField = value;
                    this.RaisePropertyChanged("FromOwnerID");
                }
            }
        }

        [DataMember]
        public string FromPackID
        {
            get
            {
                return this.FromPackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromPackIDField, value))
                {
                    this.FromPackIDField = value;
                    this.RaisePropertyChanged("FromPackID");
                }
            }
        }

        [DataMember]
        public decimal FromQty
        {
            get
            {
                return this.FromQtyField;
            }
            set
            {
                if (!this.FromQtyField.Equals(value))
                {
                    this.FromQtyField = value;
                    this.RaisePropertyChanged("FromQty");
                }
            }
        }

        [DataMember]
        public string FromSkuDescr
        {
            get
            {
                return this.FromSkuDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromSkuDescrField, value))
                {
                    this.FromSkuDescrField = value;
                    this.RaisePropertyChanged("FromSkuDescr");
                }
            }
        }

        [DataMember]
        public string FromSkuID
        {
            get
            {
                return this.FromSkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromSkuIDField, value))
                {
                    this.FromSkuIDField = value;
                    this.RaisePropertyChanged("FromSkuID");
                }
            }
        }

        [DataMember]
        public string FromUomID
        {
            get
            {
                return this.FromUomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromUomIDField, value))
                {
                    this.FromUomIDField = value;
                    this.RaisePropertyChanged("FromUomID");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string ToLoc
        {
            get
            {
                return this.ToLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLocField, value))
                {
                    this.ToLocField = value;
                    this.RaisePropertyChanged("ToLoc");
                }
            }
        }

        [DataMember]
        public string ToLot
        {
            get
            {
                return this.ToLotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLotField, value))
                {
                    this.ToLotField = value;
                    this.RaisePropertyChanged("ToLot");
                }
            }
        }

        [DataMember]
        public string ToLpnID
        {
            get
            {
                return this.ToLpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLpnIDField, value))
                {
                    this.ToLpnIDField = value;
                    this.RaisePropertyChanged("ToLpnID");
                }
            }
        }

        [DataMember]
        public string ToOwnerID
        {
            get
            {
                return this.ToOwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToOwnerIDField, value))
                {
                    this.ToOwnerIDField = value;
                    this.RaisePropertyChanged("ToOwnerID");
                }
            }
        }

        [DataMember]
        public string ToPackID
        {
            get
            {
                return this.ToPackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToPackIDField, value))
                {
                    this.ToPackIDField = value;
                    this.RaisePropertyChanged("ToPackID");
                }
            }
        }

        [DataMember]
        public decimal ToQty
        {
            get
            {
                return this.ToQtyField;
            }
            set
            {
                if (!this.ToQtyField.Equals(value))
                {
                    this.ToQtyField = value;
                    this.RaisePropertyChanged("ToQty");
                }
            }
        }

        [DataMember]
        public string ToSkuDescr
        {
            get
            {
                return this.ToSkuDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToSkuDescrField, value))
                {
                    this.ToSkuDescrField = value;
                    this.RaisePropertyChanged("ToSkuDescr");
                }
            }
        }

        [DataMember]
        public string ToSkuID
        {
            get
            {
                return this.ToSkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToSkuIDField, value))
                {
                    this.ToSkuIDField = value;
                    this.RaisePropertyChanged("ToSkuID");
                }
            }
        }

        [DataMember]
        public string ToUomID
        {
            get
            {
                return this.ToUomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToUomIDField, value))
                {
                    this.ToUomIDField = value;
                    this.RaisePropertyChanged("ToUomID");
                }
            }
        }

        [DataMember]
        public DateTime TransferDate
        {
            get
            {
                return this.TransferDateField;
            }
            set
            {
                if (!this.TransferDateField.Equals(value))
                {
                    this.TransferDateField = value;
                    this.RaisePropertyChanged("TransferDate");
                }
            }
        }

        [DataMember]
        public string TransferID
        {
            get
            {
                return this.TransferIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransferIDField, value))
                {
                    this.TransferIDField = value;
                    this.RaisePropertyChanged("TransferID");
                }
            }
        }

        [DataMember]
        public ReceiptLotInfo TransferLotInfo
        {
            get
            {
                return this.TransferLotInfoField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransferLotInfoField, value))
                {
                    this.TransferLotInfoField = value;
                    this.RaisePropertyChanged("TransferLotInfo");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

